package com.swan.utils;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.SimpleIntegerProperty;

/**
  * ChoiceConvert
 * @author xyh
 * @param <T>
 * @date 20230426
 *
 */
public class ChoiceConvert {
	private SimpleStringProperty name = new SimpleStringProperty();

	private SimpleIntegerProperty value = new SimpleIntegerProperty();

	public ChoiceConvert(String name, int value) {
		this.name.set(name);
		this.value.set(value);
	}

	public String getName() {
		return name.get();
	}

	public SimpleStringProperty nameProperty() {
		return name;
	}

	public void setName(String name) {
		this.name.set(name);
	}

	public int getValue() {
		return value.get();
	}

	public SimpleIntegerProperty valueProperty() {
		return value;
	}

	public void setValue(int value) {
		this.value.set(value);
	}
}
